package org.myboot.MyPrint.starter;

import org.MySpringBoot.Annotations.ConfigurationProperties;

/*
配置类（MyPrinterProperties）
这样用户在 application.yml 中可以配置：
* myprint:
  use-background: "\u001B[44m"  # 蓝底
  use-font-color: "\u001B[31m"  # 红字

* */
@ConfigurationProperties(prefix = "myprint")
public class MyPrinterProperties {
    private String useBackground = "";
    private String useFontColor = "";

    public String getUseBackground() {
        return useBackground;
    }

    public void setUseBackground(String useBackground) {
        this.useBackground = useBackground;
    }

    public String getUseFontColor() {
        return useFontColor;
    }

    public void setUseFontColor(String useFontColor) {
        this.useFontColor = useFontColor;
    }
}